Fix: Not using the MR output, writing to a file instead