Add support for Moodle 2.1