Added logging statements to help see what the server is up to.