Modify default variables and template config