Adding chat module source code