Updated AddClassesToSubject and AddSubjectsToClass.