Figured out z index