Finished up the clock algo (I think)