Implement parts of the events for LEACH algorithm