Use instance reference
Add getParentDistance function