std::min for sure.