Added Main method to the service