Added a determination for the heighest element