Added z order support and draw_part().