Please be aware of my master clock refactor if you do. That is better as a base.