Added worker thread to avoid GUI freezing when adding multiple files