register_params()
sub register_params { my $state = shift; $state->add_chosen(); push @{$state->main()->chosen_scans()}, $state->get_chosen_struct(); $state->mark_as_used(); $state->main()->selected_scans()->[$state->scan_idx()]->mark_as_used();continued...