Testing a fix for "connection" referenced before assignment.