Modified files to support chained inputs.