Changing variable with function
EOF fix: syntax error at l:219 with if state