Take output filename as second argument.