Made heaps variable final.