Added parallization and parallization function