Recursive expansion of foil tags