Added crude user agent detection