Added logging to the server script.