Adds shift register and timer code