Adding connected and disconnected messages