Max functions defined.