Working on core number calculations