Add regist code