Added the flattened curve to the reading algo