Use IdGenerator to get unique id