Added logging to client side