More work on getting the foreign interface complete,