Added moveNumber and maxDist conditions