Setting appId in init.