fixing some mistakes in activity check, adding testing timer