Add infinite loop for timeout.