Added support for registration.