Update goTo function.