Replaced the core_calc_tasks with functions