Automatically set cores.