Changed key record to use key as key and target list as value.