Added first try of script for endo group matching.
Removed debugger
Bars is in an array.