Add new functions for debugging