Easy-to-use Finite State Machine