Added Connection verification logic.