Script for processing heap files