Working initial input.
Also starting stages of output.