Fixing bug with Distinct optimization.
Merge branch 'master' of https://github.com/ptpham/rekkura
StateMachine individual method refactor.