Loop through all the possible extension, not just the first one