Add a timeout.