With sample(Time) it works now. Still some issues

downcounter and upcounter get reassigned EACH time