Added conditional template token wrapper