Orphan finding, better file handling