Added with_register_binding function