Timeouts

Added timeout of 30 minutes to the script, and the option to change this if necessary.