Updated to handle cancellable timertask