Add support for foreign imports