Integrated my latest splitInput and Hayden's latest rpnInput together.