Added heap validation.