First attempt at parallelizing