Added -f to gzip command
Added pir functionality to prep script.