Detecting mobile devices