This line must be outside of the for cycle. Otherwise the results pushback fails.