Refactor and allow to download only one task.
Unit tests plus coverage