Connection response_len needs to be initialized.
Move parenthesis in if statements.
Clean up.