Improved function tick