Updated template variable reference with newer syntax to avoid deprecation warning