Revert "Removed debug code"

This reverts commit 7e0b28959979442fea359f7a909b104dada303dd.
Also parameterize the field to take the external ID from
OK, two sets done now: added room for additional VoID, fixes objectsTarget