Ok, so I guess it must be done after everything else, since otherwise it would be overwritten every time the entities are generated