Adding scheduler to check the tasks continuously