Position control loop