Added reduceZIndexLevels procedure.