Add Tom's code for bit-banging the clocks