New implementation of generation tree.