Optional output file added.