Changed core count setting

Restricts core count to range:
1 to ceil(num_of_cores/2)