Add patch and fix thread_runner program