More minimal style. Detects whether files are of appropriate type.