This should now work properly for nested boxes, too: