Wait until moving is finished before continuing