Complete implementation of Input and Output.