Debugging output baked in.
Configure default debug instructions.
Refactor the deletion code, make it a standalone method.

Clean up the looping a bit and add debugging mode output.