Envelope generation in place.