Adding DEBUG-level logging