Needed a thread safe alloc. Will need to update other part as I just did parseEntities and deleteEntities