Adjust rendering code, allow turning pproc off/on