Doctor ignores safe files
Add depth attribute, doctor sorts by depth