Added new Threads for logging, with ArrayList clearing at end of logging.