Removed the write byte and moved it below