Completed base chat functionality