Added make_flat to make data easier to work with.