Added code to startup the core service using the main stuff.