Fixed duplicated function slider
Extended template with new variables