UserAgent to XML function in DetectorFunctionLibrary now functions correctly. Started work on UA family function.