At this point I have basic writeback of SAM data working