Foreign function interface