Extract indexOf functionality to MacroHelper.
Add simple Edge extractor into MacroHelper.
WIP

Yeah, that's an insane execution engine :-)