. "I think setting state to WRITING when write is called is the simplest solution." . . .