Add lego generator to framework.