Implemented the sending of interested and not interested messages when appropriate.