Fix conflicts.
Move read thread to Pool class.
Fix panel reference in read thread.