Write buffer coded and working