Clean up, fix for multiinsertR.
Removed unused code.