Added parallel for code