First draft of foreign data API