Added all the flattenings!!