Added method to produce word path