Minor changes so that ps1 file actually works