Add getConnections method