Finished converting main to state machine