Revert the module_statemachine to module_sm for now