Begin implementing Finite State Machine