Works with deep paths