Changed Server.dispatch to use functional operator.