Added in Firebase and a chat function