Changed from referencing utils to implementing in the chat code.