Added a horrible max function