Replaced all uri usage with source locations.