Scripts for moodle