Added code to resolve target objects from path