Added parllel code v1