Added written bytes to receive