Grid_search script