Adding flash write