Add support for manipulating input/output params.
Simplify token stream code.