Adaptive Motion Compensation in Radiotherapy