Made it so environments are freed