Update for moodle