Added a CID generator to each class instance