Figure 2:
Leaf detection mechanism.