Added third argument for properly traversing object tree during resource retrieval.