Move clamp out of frame search inner loop.