Step timeout?

I have a powershell step which calls an external URI

$r = [System.Net.WebRequest]::Create($uriTarget)
$r.Timeout = 180000 # 30 mins
$resp = $r.GetResponse()
$reqstream = $resp.GetResponseStream()
$sr = new-object System.IO.StreamReader $reqstream
$result = $sr.ReadToEnd()

I want to block on the thread until ReadToEnd completes… This may take up to 30 minutes to finish!
I set the timeout of the request, but the step still times out after 5 mins:

2013-09-10 07:04:31 INFO Begin script run
2013-09-10 07:04:31 DEBUG Running script against tentacle http://10.2.10.93:10933/
2013-09-10 07:09:38 INFO Job successful. Tentacle output follows:
2013-09-10 07:04:32 INFO Environment: test
2013-09-10 07:04:32 INFO URI Target:
2013-09-10 07:09:38 INFO ERROR: Exception calling “ReadToEnd” with “0” argument(s): "The operation has timed ou
2013-09-10 07:09:38 INFO ERROR: t."
2013-09-10 07:09:38 INFO ERROR: At C:\Windows\system32\config\systemprofile\AppData\Local\Tentacle\Temp\29e07a1
2013-09-10 07:09:38 INFO ERROR: 0-1979-40a3-8a35-7f6dca6bb9dd.ps1:10 char:24
2013-09-10 07:09:38 INFO ERROR: + $result = $sr.ReadToEnd <<<< ()
2013-09-10 07:09:38 INFO ERROR: + CategoryInfo : NotSpecified: (:slight_smile: [], ParentContainsErrorRecordE
2013-09-10 07:09:38 INFO ERROR: xception
2013-09-10 07:09:38 INFO ERROR: + FullyQualifiedErrorId : DotNetMethodException
2013-09-10 07:09:38 INFO ERROR:
2013-09-10 07:09:38 INFO ==============================================
2013-09-10 07:09:38 INFO PowerShell exit code: 0
2013-09-10 07:09:38 INFO ==============================================

Where can I change this timeout value of 5 minutes?

Looks like this works:

$r.Timeout = 1800000 # 30 mins
$r.ReadWriteTimeout = 1800000 # 30 mins