Use Math.Min() to take advantage of JIT instrinsics