Made clampPos local