Included connectivity check and fixed printout.