Added function to delete messages, need to check