Add implementation of "input" and "output" commands.
Add implementation of "input" and "output" commands.