Added output filename inferrence