Added logging.
Fixed parse threads.