This probably needs to happen before the <% end %> on L.35.