added a primative timer