Fixed bug and added feature in AsyncTimer