Add with-connection macro