Adjusts to account for max_spots
Merge pull request #102 from vishalkal/temp

Adjusts to account for max_spots.