Added support for Write-Progress.