setupConnections should be functional. Did not check compilation.