Remove redundant assignment
Fix output file naming