Added traverse method