Revert earlier change and put the loop back in -- we need it because there is an "all" status which wasn't being picked up.