Commented out getAvailablePeriods, dont uncommment it, it breaks