Added right click to loop functionality