Added var to sample onTick action alert