Add reading/writing the length... didn't know I needed that.