Method chnaged for parallel exection