Changed hasNext() to hasMoreSteps()