Added support for moodle enrol