Updated version for Moodle 2.3