Fixed device factory matching function.