Added ability to specify moodle group