Openmp'd the connection calculation.