Allowing users to pass in maximum digits
Added in maximum digits handling