Factored out some parameters
Save plot output as well as show to screen