Moodle 2.5+ compatiblity