Upgraded for Moodle 2.7