Done for flat and device pages