Added tree to process down tapins.
Implemented processing of z indices.