Sorted the callbacks