Added {%if and endif%}