Some additions to processInput()