Added save file to server functionality