Clean up log messages
Removed duplicate match loops
Clear log text if it gets too big