Added a max function that takes opt. property specifier