Added a small heap checker