Added clock functionality