Modified pstr.sh