Working on thread safe delete.