Added console logging for monitoring the server.