Added missing for loop.