Added loop in the default template