More Autonomous Refinement

Added "state machine".
Lets' test this out Thursday.