Initial parallel implementation.