My issue was that I was setting everything in the for each loop, which exited after the first run-through. Operator error!