Implemented id generator