Adding missed passed heap parameter; may become unnecessary with Josh's refactoring