$sources changed to $source_patterns
Make-HashTable changed to Make-HashTableFromXML