Z-ordering: added a static parameter