Code for integrated server.