Add support for extensions.