Added horrible tree implementation