Sample code for next_tick.