Completed first version of top level wrapper.