add_registration converted to accept hash reference