Added main function to service registry so it'll run as a standalone service.