Updated for 0.22
integrated into techtree and a slight change of the model