#17 added global parallel value through parameter