Simplifying max()