Corrects issue where using result instead of result.stdout