Updated to reflect Moodle API change in 2.4