Revert debug code