Adam: Added functionality to chat - almost there!