Make alg debug calls uniform