Update chat as functional module