Added hints to use time.AfterFunc.