Chat functionality update. Buggy, but works