Would we be able to wrap this all in a big foreach?