Moved logging to the service class.