added distance parameter to zMoveTo