Changed program to use inputFilename as outputFilename