Add debugging statements around unpacking returned resource