Changed writeData to storeData to avoid any confusion