Added support for new search modes
Do not asume 'unk' is heap