Setting up machine to state and state to transition relationships.