Added IsTick check in the example