Cleanup
Created strategy for temp file and thread execution.