Use correct method to save data.

Copy/paste error?
Merge pull request #10 from utkarshayachit/fix_save_data

Use correct method to save data.