Add part of regester code.