Set threads
Speedup graph tool
Avoid possible overlap between c and p