If format is unspecified, go for the first one found.