Improved client and server logging.