More debugging code

Write-Host added for debugging; will be removed.