Update to debugging functions