Optional output file declaration implemented.