Added method for recognizing mobile device