Removed "random" code

State Machine can now be updated by internal message system