Add some code to deal with time periods/semesters