I'm rewriting my scripts in Perl. I think I understand how the wait-event option works. It may be possible to have the script run as a deamon waiting for the user to turn on the camera. Once the camera is on, the script waits for the user to press the shutter release. This image is then discarded and the script proceeds to capture 5 images then goes back to waiting for the user to press the shutter release. I'll test this out today.