Added onConnect delegate