Added separate edit box for creating loops