Implement file process in other thread, debug.