Instance var in template

Change-Id: I65aa5c628aedfa3d80e92db13c4724ebb801e15a