Several inline `setTimeouts` like this make me nervous.