Restore structure to targets lost during nonrecursive refactor.
Merge pull request #17 from pmienk/master

Restore structure to targets lost during nonrecursive refactor.