Use remaining bytes, not len