I don't think that putting the range into the styles is a good thing, it probably should be an explicit parameter...