Finalize (almost) filter output and plots.