Use builtin min, recently added.