Add DEBUG logging