Writer should use passed argument, not unknown variable