Implemented changes in ChatHook