Added support for browser usage.