Begining of mobile state machine added