Fixed Z Variables in gotoCoord() function