Add appid and afid