Added method for setting AppID