Added arg for file output.