Update for Powershell 2.0 compatibility