Added an iterator to the template service