Eliminated GLOBAL-INPUT.
Eliminated (almost) all references to global input.