tprek: Generate proper IDs