lgtm.com also complained about "connection_after" being unused. This hopefully works around that warning.