Accounted for z-indexes.