Changed to save data in directory 'data'