Some code for season_criteria