Convert clock into a seperate component.