Started filling out clock algo