Added computeSteps