Merged and expanded the chat handler. Now in the ai file as it should be.