Add regist logic.