Dynamic allocation of major numbers