Ported code and initial data over in from my notebook.