Initial clock implementation, but going to make it much, much better.