Updated the service manager to a state object