Adding declaration for num_of_cores