Preliminary Parallel implemenation