Protecting against bad files.