Added connectionstate_updated callback