Added the gotoMax() method