Added preInsert event-hook