Added timeouts to server.