Added save2file capabilities