Code snippet of Hunt