First pass at shift register code.
Some work on the code.