Added static functions Min and Max.