Edited deletion debug code