Code refactor
Chat creation