Working tree traversal etc. Need to fix some ID issues, but almost there.