Added support for passing parameters for processInput()