Added a check to make sure the input number isn't > 1,000,000