Migration Changes

May be the data writer should return an int as well, then you add all those up and that's what you should return here.