Updated the addcourses-functionality