Smarter handling of file types.