Make timer accept closure.