Updated the output that is sent to output.txt