Utility to bring callbacks back into sequential order