A basic state engine copied from previous project.
Merge remote-tracking branch 'origin/master'