Improved data storing method + class.