Update capture.sh