Flush + write on the same thread, as not to give me an epileptic fit