Added logging to server.