Bug fix, read in IDs