Modified defn of task. Created MapRedTask object.