This needs to be checked for True/False in case data write failed