Chat implementation.