Added Chat function for test purpose