Set a timeout.