Rename max and min because stupid