Termination awaiting code: get time restriction working again