Updated moodle API