Added ability to save data as a RData file