This allows user to set min and max