Added Connect method and Connected event