Added ability to specify file name in plots