getAvailablePeriods works now! Yay.