Use Infinity instead of Number.POSITIVE_INFINITY