Add debugging structure
Enable debug mode