Need to set idx here too.