First draft of parallelization