Added didConnect callback