Added CycleClock. Significant updates to control logic.