Insert implementation