Make separate tick fn to wrap update code