implemented CallFinalize input file option