Removed statemanager from motormains