Added default max value in case where Number.MAX_VALUE is not available