Allocation of scarce resources