Changed isfinite macro