Added writeData and deleteFile