Bounds detection