Tying a parallel for loop elsewhere