New API for browser side implementation