Chat functionality implemented as on video. Needs refactoring.