Attempt 1 at fixing memory stuff for envelopes