Fixed error in polling task. Updated examples