Added support for internal imports.