Added support for only Z order input