Handle multiple extensions.