Working with pregen code post