Add utility debugging functions