Call start/stopWriting only once