Adding some logging to client