Added tail call optimization step.