Moved range check to visualization when used. Added task max dur. Min dur now respected even if gating.