Add the code to calucurate parallel