Constractor with appId is appended.