Benefits of using state machines (FSMs)