Add registration method.