Made ClockMode configurable