Simple implementation for script chat developed by Anant Garg