bottleneck detection. Jay/Rob/Jon/Kevin are welcome to take a look and send comments or make changes.