Library matching utility