Fixed timer variable scope.