More stable tick script.