Changed some course_id variables to course_key