Added generation code to android and browser.