Added result variable to script tasks.