Anti-flood logic and scraped the extra newlines in the console output.