InsertAndSplit almost done, need to do writing stuff