Added option to save msg as text file