Added additional logic checks and allowed for user input to set min/max.