Manipulates variables inside template