Working Version with 4 connections.