Add "configure" method to preconfigure the connection