Added logging to the server