Fix limited number of subprocesses.

Add important TODOs.