Added Moodle 2.4 compliance