Overhaul of stimulus calibration/creation routines.