Make MIN related functions more readable