Fixed for loop - add "return output_results" at end of for loop