Small changes in task and other utilities

### Description
Few changes in tasks and added a check for correct response from CloudFront.

Fixes #34