IdentifyFile should not be static