Added functionality: Treetop detection