Added logging to the flooding section, and automating transmit.