Added parallelism. Needs testing.