Give output filename as parameter