rgen now adds a string concat every 500 chars.