Tweaked the effect code. Removed some redundancy and added some linear smoothing to the controls.