Updated code

For readability as well as to keep related variables together (tess
factors right next to renderer pass)