Each recipe is tested and programmed in such a way that it checks if a specific step is done before moving on to the next. This is done with the help of visual and load sensors on the device. The steps themselves are pre-coded.