Added singleton mode for server.