On the allocation of effort