Updated PS. Make use of new AllowDuplicateRegister.