Add method for running server.