Fixes Issue 9896 - Implement recursive building with optional exclusion list.