Add function for adding chats