Initial import of Elcodi State Machine