Added hacked together shift register functionality.