Implements Chat system.