Put back smarter browser function code