Added a UA-based device identification function