Add debug control