Rebuilt traversal functions as extension methods.

Project does not compile.