Fixed wrong function arguments and removed debug statement.
Replaced call to non-existent function dat.setResultDirectory.
Removed float operator as valueString can have a mathematical expression.