Accept various ret-val types.
Merge pull request #14 from sgur/various_save_fn

Accept various ret-val types.