Found major bug in insert code. Attempting fix.