Added hierarchy processing.