Updated the environment helper for Windows Phone.