Added FSM
Merge pull request #438 from GrygrFlzr/master

Added FSM