Remember to open the output file ya dummy