Updated prepare.sh script