Updated the insert and delete production code and test code.