Mechanics of portfolio allocation.