Add flash write support.