Added z ordering and methods.