Added ConnectionActivity to count timeout and duration.