Added option to attach env later in source2env