Tree works for r <= 4.  Not sure why it isn't working above that.