Update program

Add back the redirection loop for state 10