Updated reboot to include a waiting time as well as a delay.
Waiting time: The time you have before computer says no
Reboot time: The time the computer needs to perform a reboot. This very variable but somewhat consequent. You'll need to set this a bit longer than expected