Relocated tick func to end