Update debugging functions