Added support for foreign columns.