Changed clock to separate tick to downward and upward phases