Changed isInfinite-