ESR code line generation works