Change program on detection of deviations