Added a junction-finding function.