Changed how inserts are done.