Implement stat text generation