Changed to only get ids as the fields.