Properly create id generator