Changed highlight to use depth as parameter