Changed buffer writing.