Less complexity to detect other filetype