Working on clock but losing the values after 9