Add more debugging to section deletion code