Added rudimentary support for display_progress flag in multithreaded mode