Forgot to open the output file. Whoops.