Use flatten. It's somewhere later in the code