Added support for multiple extensions.