Defined taskArray locally