Added method to limit num of lpus.