Added moodle 2.x compatibility.