A computer-implemented method of operating a therapeutic apparatus, wherein the therapeutic apparatus comprises a therapeutic system for treating a target zone of a subject, wherein the therapeutic system has an adjustable focus for directing radiation into the target zone, wherein the therapeutic apparatus further comprises a respiration sensor for measuring a respiratory phase of the subject, wherein the method comprises the steps of:
- sending control signals to the therapeutic system that cause treatment of the target zone,
- receiving time-dependent-respiratory-phase-data from the respiration sensor,
- generating focus-adjustment-control-signals in accordance with the time-dependent-respiratory-phase-data, and
- sending the focus-adjustment-control-signals to the therapeutic system.