Added logging calls to key points in the service