Add traverse method.