Scanner detection