Added in redundancy check for IDs in Q1.c