Added logging to client