Made changes to match moodle chat structure