Stricter out-of-bounds detection.