Added autoreleasepool blocks to reduce amount of live but unused memory during triple enumeration.