grid search for running on the server.