Refactor for using TaskSturct_t as basic structure variable.