Controlling Loop Start/End With Automation

this is not an immediate solution, anyway check it out.