Output is now stored in a file when trying different parameters for the graphical model.