Fix commit callbacks by moving the callbacks to the task's list.
Check the commit callback threshold correctly.