Algorithm for device classification.