Removed Write-Debug statements.