Added second constructor for explicit machine ids
Implemented the counter for new revision ids