Adding connect and disconnect related messages and the changes that are
necessary for it.
Commenting.