Adds connections for all atoms.