Added more heap functions.