added tocking for an arbitrary amount of time