Basically working version for the chat