[minor] Interate over multiple keys.
[debug] Added extra debug statements.