Chat and state managers implementation.