Altered code to correctly handling a 12 hour wait.