Chain code finding
Bring back missing definitions