Should use <% with %> rather than <% loop %>