Worked on clock functionality