Changed From foreach to SNOW parallel backend