Merging work on inputfile, etc.