Use the same record object for delete and insert. Added the Accessible flag.