Added method in preferences for number of semesters