Better x-coord and y-coord depending on z-coord.