Properly removing duplicates
Disk scanning and collapsing errors (because they're all too common ;)