Add chat as functional module