Added an onComplete parameter to the Timer constructor, which is called on timer completion.