Make it work with newly created chat object