Added method for save.
Added method for save.