Added ability to limit HSB values