Began SmartInsert overhaul. Broken commit. Beware.