Added implementation of save option.