More general handling of HD files.