Flattened, until I figured out a better way to do this.