Add check for ID already in use.
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>