Refactors find_sources()