Adding functions that create the plots.