Switched to path_parent approach. Slight reduction in performance compared to alternative, but alternative was a bit funky.