Added localStorage checks and removed User Agent checks.