Tree pattern done.