Separated parallel and sequential execution. No memory errors or leaks