Attempt to replace String[] with List<String> in freeVars