More sanity checking on passed IDs