I believe the error/waiting/delay sections will need to be added here to handle when those events occur.