Adding  a timer fix function