Move output_prefix logic to plot_cb and change output folder option to be optional. Also change some parameters.