Added Chat code