Servo-based entrainment program