Removes debug and adds 30 second sleep upon failure