Added MaxPosition family of functions.