Update rec.sh