Add customized autodiscover and registration