Added allocators for code structs