Add output file flag and implement it.