duplication of startTask() logic is removed