A method and an apparatus to store data patterns are presented. Redirection instructions cause execution of a handler than examines the machine state and replaces the redirection instruction with a replacement instruction having a desired result resolved in accordance with the current machine state. Differences between that displayed reference color image and the actual color are inputted into the computer and the reference image is then translated into a revised color image. The apparatus includes resistor dividers for both the temperature sensor and reference voltages, a microprocessor having analog inputs, and additional components for noise suppression and open sensor protection. In an associated method, a microdermabrasion procedure is performed on the skin of a patient at an operative site.