Implement Connect method.