Uses lowercase max function