trailing whitespace trimmed.
Added connection timing logs.