Made selection able to return offsets relative to a particular parent node