Changed control to loop in template

The deprecated 'control' command was replaced with the 'loop' command in
the template