Modify getTaskReward function, now can get the rewards.