Added IdManager for working with ids