Adding logging functionality to the service