Added Connection Test Function.