Changed report sending to use a for loop instead of foreach