Properly hook up input file