Fix thread classes init. Enable logging.