Made asynctask for recalculating total.