Only works for flatten(1)