Set up a basic flow. (recreating the state diagram)