VERY slick solution. Great for reference for cases where hysteresis is needed, thanks for sharing!

Picster