Flatten should be covered in the docs.