Added each/endeach commands to template