Add clock functionality