Systems and methods for controlling a device are disclosed. Some embodiments preserve the contents of the calling stack, presenting each JIT with the illusion that it is executing its own generated code. Those pixels having the same dominant proposed component, andor which contain at least approximately the same proportions of the proposed components, may then have their measured spectra combined.