Add a buffer to avoid continuous writes